{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>审核</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">报备人：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_u_name}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">报备人电话：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_u_phone}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">客户公司：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_com_name}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">联系人：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_name}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">微信号：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.si_wechat}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">联系电话：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_phone}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">联系电话2：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_phone1}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">联系电话3：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_phone2}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">等级：</label>
                            <div class="layui-input-block">
                                {if($data.s_role == 3)}
                                <input type="text" class="layui-input" value="区域加盟商" disabled>
                                {elseif($data.s_role == 4)}
                                <input type="text" class="layui-input" value="县级运营商" disabled>
                                {elseif($data.s_role == 5)}
                                <input type="text" class="layui-input" value="市级分公司" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="市级分公司" disabled>
                                {/if}
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">地址：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_area_str}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">地址详情：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_address}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">内部老师：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_inside_name}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">老师电话：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$data.s_inside_phone}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">沟通要点：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-input" style="height: 100px;" disabled>{$detail.si_content}</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">备注：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-input" style="height: 100px;" disabled>{$detail.si_remark}</textarea>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">图片：</label>
                                {if(!empty($detail.si_images))}
                                <div class="layui-input-block aaaaaa">
                                    {volist name='detail.si_images' id='vo'}
                                    <img height="80" width="80" style="float:left;margin-top:5px;cursor:pointer;margin-right: 20px;" src="{$vo}" />
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">提交时间：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.si_time}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">审核：</label>
                            <div class="layui-input-block">
                                同意<input type="radio" name="verify" class="layui-input sss" value="2" checked>
                                拒绝<input type="radio" name="verify" class="layui-input sss" value="3" >
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">拒绝原因：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-input" style="height: 100px;" name="reason" placeholder="如拒绝，可输入拒绝原因"></textarea>
                            </div>
                        </div>
                        <input type="hidden" value="{$data.s_id}" name="s_id">
                        <input type="hidden" value="{$detail.si_id}" name="si_id">
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="component-form-element">提交
                                </button>
                                <!--<button class="layui-btn layui-btn-primary" onclick="wk.layer_close('close')">关闭</button>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
<script type="text/javascript">
    $('.aaaaaa').viewer({
        url: 'data-original',
    });
    layui.use(['form','upload','layedit'], function() {
        var form = layui.form;
        form.on('submit(component-form-element)', function (data) {
            $('.layui-btn').addClass('layui-disabled').attr('disabled','disabled');
            $.ajax({
                url:"{:url('shenhe')}",
                type:'post',
                dataType:'json',
                data:data.field,
                success:function(res){
                    if (res.code == 200) {
                        layer.msg(res.msg,{icon:1,time:1500,shade:0.1},function(index){
                            wk.layer_close();
                        })
                    } else {
                        wk.error(res.msg,'','$(".layui-btn").removeClass(\'layui-disabled\').removeAttr(\'disabled\');');
                    }
                }
            })
        });
    });
</script>